package com.huilian.iotbox.client.service;

import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.dto.WeiXinDto;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

public interface WeChatService {
    String biz(String params, Model model, HttpServletRequest request) throws UnsupportedEncodingException;

    String login(HttpServletRequest request, Model model) throws UnsupportedEncodingException;

    ServerResponse appletLogin(WeiXinDto weiXinDto, HttpServletRequest request) throws IOException;

    String getMemberInfo(String deviceNo, String params, String officialAccountOpenId, Model model, HttpServletRequest request) throws UnsupportedEncodingException;

    String outPutUserInfoByOpenId(HttpServletRequest request, Model model) throws UnsupportedEncodingException;

    String getOpenIdByOpen(HttpServletRequest request, Model model) throws UnsupportedEncodingException;
}
